import turtle

# turtle 是个画图的库 常用的方法就是下面这几个 run一下试试吧
turtle.pensize(4)
turtle.pencolor('yellow')

turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)

turtle.mainloop()